package com.w2cx.selenium.util;

import org.testng.IRetryAnalyzer;
import org.testng.ITestResult;

public class Retry implements IRetryAnalyzer {
    //最多跑多少次
    private static  int maxRetryCount = 2;
    private int retryCount =1;


    @Override
    public boolean retry(ITestResult iTestResult) {

        if(retryCount <= maxRetryCount){
            retryCount++;
            return true;
        }



        return false;
    }
}
